<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<div class="t_bar">
	本项目曾获科技奖励情况
</div>
<table id="tblAwardInfo" cellpadding="0" class="table01" width="100%"
	border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
		<col style="width:5%">
		<col style="width:5%">
		<col style="width:20%">
		<col style="width:20%">
		<col style="width:20%">
		<col style="width:15%">
		<col style="width:15%">
		<thead>
			<tr style="border: 1px solid #B7D1E6">
				<th class="TblHead" align="center" >选择</th>
				<th class="TblHead" align="center" >序号</th>
				<th class="TblHead" align="center" >获奖项目名称</th>
				<th class="TblHead" align="center" >奖项名称</th>
				<th class="TblHead" align="center" >获奖时间</th>
				<th class="TblHead" align="center" >奖励等级</th>
				<th class="TblHead" align="center" >授奖部门（单位）</th>
			</tr>
		</thead>
		<tbody id="tab">
		<tr style="display: none">
			<td align="center"> 
				<input type="radio" class="radiobutton" name="selPaperinfos">
			</td>
			<td align="center">
				<span name="awardinfos|awardinfo[0][0]@seq_no">[index]</span>
			</td>
			<td align="center">
				<input id="awardinfo_pro_name_[0][0]" style="width:80%;" name="awardinfos|awardinfo[0][0]|pro_name" maxlength="100" label="获奖项目名称" value="" class="input_text  required " />
			</td>
			<td align="center">
				<cpt:select id="awardinfo_award_name_[index]"  name="award_name" key="awardName" onChange="initControlValue(this.id);" style="width:90%"></cpt:select>
				<input type="hidden" name="awardinfos|awardinfo[0][0]|award_name_value"  class="input select required" value="" label="奖项名称">
				<input type="hidden" name="awardinfos|awardinfo[0][0]|award_name_name" value="" />
			</td>
			<td align="center">
				<input id="awardinfo_award_date_[0][0]" style="width:60%;text-align:center" name="awardinfos|awardinfo[0][0]|award_date" label="获奖时间" value="" class="required date beforeToday" />
			</td>
			<!-- <td align="center">
				<input id="awardinfo_award_level_[0][0]" style="width:80%;" name="awardinfos|awardinfo[0][0]|award_level" maxlength="100" label="奖励等级" value="" class="input_text  required " />
			</td> -->
			<td align="center">
				<cpt:select id="awardinfo_award_level_[index]"  name="award_level" key="awardLevel" onChange="initControlValue(this.id);" style="width:90%"></cpt:select>
				<input type="hidden" name="awardinfos|awardinfo[0][0]|award_level_value"  class="input select required" value="" label="奖励等级">
				<input type="hidden" name="awardinfos|awardinfo[0][0]|award_level_name" value="" />
			</td>
			<td align="center">
				<input id="awardinfo_award_depart_[0][0]" style="width:80%;" name="awardinfos|awardinfo[0][0]|award_depart" maxlength="100" label="授奖部门（单位）" value="" class="input_text  required " />
			</td>
		</tr>
		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/awardinfos/awardinfo" var="awardinfo">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center">
					<input type="radio" class="radiobutton" name="selAwardinfos">
				</td>
				<td align="center">
					<span name="awardinfos/awardinfo[${flag}${index}]@seq_no">
						<x:out select="$awardinfo/@seq_no" />
					</span>
				</td>
				<td align="center">
					<c:set var="pro_name" scope="page">
						<x:out select="$awardinfo/pro_name" />
					</c:set>
					 <input id="awardinfo_pro_name_[${flag}${index}]" value="${pro_name}" label="获奖项目名称" style="width:80%;" maxlength="100" name="awardinfos/awardinfo[${flag}${index}]/pro_name" class="input_text  required"/>
				</td>
				<%-- <td align="center">
					<c:set var="award_name" scope="page">
						<x:out select="$awardinfo/award_name" />
					</c:set>
					 <input id="awardinfo_award_name_[${flag}${index}]" value="${award_name}" label="奖项名称" style="width:80%;" maxlength="100" name="awardinfos/awardinfo[${flag}${index}]/award_name" class="input_text  required"/>
				</td> --%>
				<td align="center">
					<c:set var="award_name_value"><x:out select="$awardinfo/award_name_value" /></c:set>
			        <cpt:select id="awardinfo_award_name_${index}"   name="award_name"   key="awardName" style="width: 90%" value="${award_name_value}" onChange="initControlValue(this.id);"></cpt:select>
		        	<input type="hidden" name="awardinfos/awardinfo[${flag}${index}]/award_name_value"  class="required" value="<x:out select="$awardinfo/award_name_value" />" label="奖项名称"/>
			        <input type="hidden" name="awardinfos/awardinfo[${flag}${index}]/award_name_name" value="<x:out select="$awardinfo/award_name_name" />"  label="奖项名称"/>
				</td>
				<td align="center">
					<c:set var="award_date" scope="page">
						<x:out select="$awardinfo/award_date" />
					</c:set>
					 <input id="awardinfo_award_date_[${flag}${index}]"  value="${award_date}" label="获奖时间"  name="awardinfos/awardinfo[${flag}${index}]/award_date" style="width:60%;text-align:center" class="required date beforeToday"/>
				</td>
				<%-- <td align="center">
					<c:set var="award_level" scope="page">
						<x:out select="$awardinfo/award_level" />
					</c:set>
					 <input id="awardinfo_award_level_[${flag}${index}]" value="${award_level}" label="奖励等级" style="width:80%;" maxlength="100" name="awardinfos/awardinfo[${flag}${index}]/award_level" class="input_text  required"/>
				</td> --%>
				<td align="center">
					<c:set var="award_level_value"><x:out select="$awardinfo/award_level_value" /></c:set>
			        <cpt:select id="awardinfo_award_level_${index}"   name="award_level"   key="awardLevel" style="width: 90%" value="${award_level_value}" onChange="initControlValue(this.id);"></cpt:select>
		        	<input type="hidden" name="awardinfos/awardinfo[${flag}${index}]/award_level_value"  class="required" value="<x:out select="$awardinfo/award_level_value" />" label="奖励等级"/>
			        <input type="hidden" name="awardinfos/awardinfo[${flag}${index}]/award_level_name" value="<x:out select="$awardinfo/award_level_name" />"  label="奖励等级"/>
				</td>
				<td align="center">
					<c:set var="award_depart" scope="page">
						<x:out select="$awardinfo/award_depart" />
					</c:set>
					 <input id="awardinfo_award_depart_[${flag}${index}]" value="${award_depart}" label="授奖部门（单位）" style="width:80%;" maxlength="100" name="awardinfos/awardinfo[${flag}${index}]/award_depart" class="input_text  required"/>
				</td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page"/>
		</x:forEach>
		<script type="text/javascript">
			showAllDateTag("tblAwardInfo");
		</script>
		
		</tbody>
</table>
<br>

<table width="98%" align="center">
	<tr>
		<td>
			<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblAwardInfo',99,'本项目曾获科技奖励情况最多只能填写99条')){addNewRow('tblAwardInfo');showDateTag('tblAwardInfo');}try{top.resizeFrame();}catch(e){};">
			<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblAwardInfo','selAwardinfos')">
		    <input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblAwardInfo','selAwardinfos')">
		    <input class="button" name="cmddel" type=button value="删除" onclick="deleteSelectedRow('tblAwardInfo','本项目曾获科技奖励情况')">
		</td>
	</tr>
</table>
<div class="text_point">
				<p>本表所填科技奖励是指：</p>
				<p>1.国务院和省、自治区、直辖市政府及国务院有关部门设立的科技奖励；</p>
				<p>2.设区市政府设立的科技奖励；</p>
				<p>3.经省级以上科技行政部门登记的社会力量设立的科技奖励；</p>
				<p>4.国际组织和外国政府授予的科技奖励。</p>
			</div>


